export const TOPTAB_TYPE = {
	ALL: "all",
	INVESTIGATION: "investigation",
	FINISH: "finish",
};

export const ARCHIVES_STATE = {
	INVESTIGATE: 0,
	CLOSECASE: 1,
};

export const ARCHIVES_STATE_NAMES = {
	[ARCHIVES_STATE.INVESTIGATE]: "未归档",
	[ARCHIVES_STATE.CLOSECASE]: "已归档",
};

export const archivesStateType = {
	0: "warning",
	1: "success",
};

export const ARCHIVES_TYPE = {
	SIMPLE: 0,
	COMMONLY: 1,
	SLIGHT: 2,
}
export const ARCHIVES_TYPE_NAMES = {
	[ARCHIVES_TYPE.SIMPLE]: "简易程序",
	[ARCHIVES_TYPE.COMMONLY]: "一般程序",
	[ARCHIVES_TYPE.SLIGHT]: "轻微火灾",
};

export const archivesTypeList = [{
	label: ARCHIVES_TYPE_NAMES[ARCHIVES_TYPE.SIMPLE],
	value: ARCHIVES_TYPE.SIMPLE
}, {
	label: ARCHIVES_TYPE_NAMES[ARCHIVES_TYPE.COMMONLY],
	value: ARCHIVES_TYPE.COMMONLY
}, {
	label: ARCHIVES_TYPE_NAMES[ARCHIVES_TYPE.SLIGHT],
	value: ARCHIVES_TYPE.SLIGHT
}]

export const archivesType = {
	[ARCHIVES_TYPE.SIMPLE]: "success",
	[ARCHIVES_TYPE.COMMONLY]: "primary",
	[ARCHIVES_TYPE.SLIGHT]: "error",
};

export const HANDLE_TYPE = {
	ADD: 1,
	EDIT: 2,
	DEL: 3,
};

export const handleTypeMap = {
	[HANDLE_TYPE.ADD]: {
		text: "添加",
		color: "#5396FF",
	},
	[HANDLE_TYPE.EDIT]: {
		text: "编辑",
		color: "#5396FF",
	},
	[HANDLE_TYPE.DEL]: {
		text: "删除",
		color: "#ef4864",
	},
};

export const DATA_LOCATION_TYPE = {
	LOCAL: 1,
	REMOTE: 0,
};


export const SYNC_STATUS_TYPE = {
	NOT_UPWARD_SYNCED: 0,
	PENDING_UPWARD_UPDATE: 1,
	NOT_DOWNWARD_SYNCED: 2,
	PENDING_DOWNWARD_UPDATE: 3,
	SYNCED: 4,
};


export const SYNC_STATUS_NAMES = {
	[SYNC_STATUS_TYPE.NOT_UPWARD_SYNCED]: "↑未同步",
	[SYNC_STATUS_TYPE.PENDING_UPWARD_UPDATE]: "↑待更新",
	[SYNC_STATUS_TYPE.NOT_DOWNWARD_SYNCED]: "↓未同步",
	[SYNC_STATUS_TYPE.PENDING_DOWNWARD_UPDATE]: "↓待更新",
	[SYNC_STATUS_TYPE.SYNCED]: "√已同步",
};
